package com.chalk.util.wxminipay;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "xml")
public class WxMiniQueryResult {
    @XmlElement
    public String return_code;
    @XmlElement
    public String return_msg;
    @XmlElement
    public String appid;
    @XmlElement
    public String mch_id;
    @XmlElement
    public String nonce_str;
    @XmlElement
    public String sign;
    @XmlElement
    public String result_code;
    @XmlElement
    public  String openid;
    @XmlElement
    public  String is_subscribe;
    @XmlElement
    public String trade_type;
    @XmlElement
    public String trade_state;
    @XmlElement
    public String bank_type;
    @XmlElement
    public Integer total_fee;
    @XmlElement
    public Integer cash_fee;
    @XmlElement
    public String transaction_id;
    @XmlElement
    public String out_trade_no;
    @XmlElement
    public String time_end;
    @XmlElement
    public String trade_state_desc;

    @Override
    public String toString() {
        return "WxMiniQueryResult{" +
                "return_code='" + return_code + '\'' +
                ", return_msg='" + return_msg + '\'' +
                ", appid='" + appid + '\'' +
                ", mch_id='" + mch_id + '\'' +
                ", nonce_str='" + nonce_str + '\'' +
                ", sign='" + sign + '\'' +
                ", result_code='" + result_code + '\'' +
                ", openid='" + openid + '\'' +
                ", is_subscribe='" + is_subscribe + '\'' +
                ", trade_type='" + trade_type + '\'' +
                ", trade_state='" + trade_state + '\'' +
                ", bank_type='" + bank_type + '\'' +
                ", total_fee=" + total_fee +
                ", cash_fee=" + cash_fee +
                ", transaction_id='" + transaction_id + '\'' +
                ", out_trade_no='" + out_trade_no + '\'' +
                ", time_end='" + time_end + '\'' +
                ", trade_state_desc='" + trade_state_desc + '\'' +
                '}';
    }
}
